﻿<phoneNavigation:PhoneApplicationPage 
    x:Class="RssReader.FeedItemDetailsPage"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phoneNavigation="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"     xmlns:mpc="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:src="clr-namespace:RssReader"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"     d:DataContext="{d:DesignData SampleData/FeedItemViewModelSampleData.xaml}"    BackKeyPress="PhoneApplicationPage_BackKeyPress"     FontFamily="{StaticResource PhoneFontFamilyNormal}"    FontSize="{StaticResource PhoneFontSizeNormal}"    Foreground="{StaticResource PhoneForegroundBrush}" xmlns:browser="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" Orientation="Portrait">
    <phoneNavigation:PhoneApplicationPage.Resources>
        <Storyboard x:Name="PageTransitionDetails">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TitleGrid" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)">
                <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="90">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="TitleGrid" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.CenterOfRotationX)">
                <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ContentGrid" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)">
                <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="90">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ContentGrid" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.CenterOfRotationX)">
                <EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="00:00:00.3" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseIn"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </phoneNavigation:PhoneApplicationPage.Resources>

    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid x:Name="TitleGrid" Grid.Row="0">
            <Grid.Projection>
                <PlaneProjection/>
            </Grid.Projection>
            <TextBlock Text="RSS Reader" Style="{StaticResource PhoneTextPageTitle1Style}"/>
            <!-- <TextBlock Text="{Binding FeedName}" Style="{StaticResource PhoneTextPageTitle2Style}"/>-->
        </Grid>
        <StackPanel x:Name="ContentGrid" Grid.Row="1">
            <StackPanel.Projection>
                <PlaneProjection />
            </StackPanel.Projection>
            <TextBlock Name="tbTitle" Text="{Binding Title}" TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}" Visibility="Collapsed"/>
            <TextBlock Name="tbDescription"  Text="{Binding Description}" TextWrapping="Wrap" Visibility="Collapsed"/>
            <browser:WebBrowser src:WebBrowserHelper.Body ="{Binding Url}" HorizontalAlignment="Left" Margin="0,5" Name="webBrowser1" VerticalAlignment="Bottom" Width="480" Loaded="webBrowser1_Loaded" Height="630" />            
<!-- 
            <TextBox Text="{Binding Description}" TextWrapping="Wrap"   IsEnabled="False" Grid.Row="1"  FontFamily="{StaticResource PhoneFontFamilySemiLight}"            FontSize="{StaticResource PhoneFontSizeMedium}"            Foreground="{StaticResource PhoneForegroundBrush}" VerticalScrollBarVisibility="Auto" AcceptsReturn="False" IsTabStop="True" HorizontalScrollBarVisibility="Auto" />
-->
            <Button Content="Read more" Height="71" Name="button1" Width="180" Click="button1_Click" />
            <StackPanel Grid.Row="2"  Orientation="Horizontal" Loaded="StackPanel_Loaded">
                <TextBlock Margin="2,0,4,0">Published:</TextBlock>
                <TextBlock x:Name ="DatePublishedTxtBx" Text="{Binding DatePublished}"   FontFamily="{StaticResource PhoneFontFamilySemiLight}"            FontSize="{StaticResource PhoneFontSizeMedium}" Margin="0,2,0,0" />
            </StackPanel>   
        </StackPanel>
    </Grid>
</phoneNavigation:PhoneApplicationPage>